package top.archiesean.pojo;

import javax.sql.DataSource;

import java.util.HashMap;
import java.util.Map;

/**
 * 容器对象 解析sqlMapConfig的内容的数据
 *
 * @author ArchieSean
 * @create 2023/7/10
 */
public class Configuration {

    private DataSource dataSource;
    /**
     * key: statementId
     * value: mappedStatement
     */
    private Map<String, MappedStatement> mappedStatementMap = new HashMap<>(2);

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
